package com.pms.dao;

import java.util.List;

import com.pms.pojo.Department;
import com.pms.pojo.Employee;
import com.pms.pojo.Post;
import com.pms.pojo.Probation;

public interface EmployeeDao {
	//获取部门信息
	public List<Department>getDpartments();
	//获取岗位信息
	public List<Post>getPosts();
	//存入员工信息
	public Boolean addEmployee(Employee employee);
	//加入试用期
	public Boolean addProbation(Probation probation);
	//ͨ通过分配的Number取ID
	public Integer getIdByNum(String empNum);
	//ͨ通过岗位信息获取岗位信息
	public Post getPostById(Integer postId);
	//通过ID获取相应岗位的剩余岗位数量
	public Integer getCountOfPost(Integer postId);
	//查询邮箱时候已经注册
	public Integer findEmail(String email);
	//通过员工编号查询员工信息
	public Employee findEmpInfoById(String empNum);
}
